package com.gxa.pingan.pojo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;

/**
 * @Author ChenJin
 * @date 2021/10/25 14:22
 * Description:
 **/
@AllArgsConstructor
@NoArgsConstructor
@Data
@ApiModel("Driver")
public class Driver implements Serializable {
    @ApiModelProperty(name = "id",value = "id",example = "司机编号",dataType = "Long")
    @ExcelProperty(value = "司机编号",index = 0)
    private Long id;
    @ApiModelProperty(name = "name",value = "name",example = "司机姓名",dataType = "String")
    @ExcelProperty(value = "司机姓名",index = 1)
    private String name;
    @ApiModelProperty(name = "phone",value = "phone",example = "司机手机号码",dataType = "String")
    @ExcelProperty(value = "司机手机号码",index = 2)
    private String phone;
    @ApiModelProperty(name = "idCard",value = "idCard",example = "司机身份证号",dataType = "String")
    @ExcelProperty(value = "司机身份证号",index = 3)
    private String idCard;
    @ApiModelProperty(name = "address",value = "address",example = "司机所在地址",dataType = "String")
    @ExcelProperty(value = "司机所在地址",index = 4)
    private String cityName;
    @ApiModelProperty(name = "cardNum",value = "cardNum",example = "司机驾车的车牌号",dataType = "String")
    @ExcelProperty(value = "司机驾车的车牌号",index = 5)
    private String cardNum;
    @ApiModelProperty(name = "password",value = "password",example = "司机登录密码",dataType = "String")
    @ExcelProperty(value = "司机登录密码",index = 6)
    private String passWord;
    @ApiModelProperty(name = "status",value = "status",example = "司机在职状态",dataType = "Boolean")
    @ExcelProperty(value = "司机在职状态",index = 7)
    private Boolean status;
    @ApiModelProperty(name = "img",value = "img",example = "司机照片",dataType = "String")
    @ExcelProperty(value = "司机照片",index = 8)
    private String img;
    @ApiModelProperty(name = "loginTime",value = "loginTime",example = "最后登录时间(后端处理)",dataType = "Timestamp")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ExcelProperty(value = "最后登录时间(后端处理)",index = 9)
    private Date loginTime;
}
